package com.start.avue.mapper;

import java.util.HashMap;
import java.util.Map;

public class AvueDicDataMapper {
    private final Map<String, String> labelDic;
    private final Map<String, String> valueDic;

    public AvueDicDataMapper(Map<String, String> labelDic, Map<String, String> valueDic) {
        if (labelDic == null) {
            labelDic = new HashMap<>();
        }
        if (valueDic == null) {
            valueDic = new HashMap<>();
        }
        this.labelDic = labelDic;
        this.valueDic = valueDic;
    }

    public String getLabelDicValue(String labelKey) {
        return labelDic.getOrDefault(labelKey, "");
    }

    public String getValueDicValue(String valueKey) {
        return valueDic.getOrDefault(valueKey, "");
    }
}
